Skip to main content

๐Ÿ”ฎ PREDIK Platform

The Future of Decentralized Predictive Intelligenceโ€‹

Where Human Insight Meets Blockchain Verification


๐ŸŒŸ Overviewโ€‹

PREDIK revolutionizes predictive analytics by combining crowd-sourced intelligence with blockchain verification. Built by the team behind Europe's most advanced smart-beta indices, we're creating a decentralized ecosystem where data scientists, traders, and institutions collaborate to generate alpha.

๐ŸŽฏ Core Value Propositionโ€‹

  • For Traders: Monetize your market insights with verifiable on-chain predictions
  • For Institutions: Access aggregated sentiment data and predictive signals
  • For Developers: Build on our open infrastructure with comprehensive APIs
  • For Everyone: Transparent, immutable, and fair prediction markets

๐Ÿš€ Quick Startโ€‹

Prerequisitesโ€‹

Node.js 18+
PostgreSQL (NeonTech)
Polygon Wallet (MetaMask/WalletConnect)

Installationโ€‹

# Clone repository
git clone https://github.com/predik-ai/predik-platform
cd predik-platform

# Install dependencies
npm install

# Configure environment
cp .env.example .env.local

# Setup database
npm run db:migrate

# Launch development server
npm run dev

Visit http://localhost:3000 to access the platform.


๐Ÿ—๏ธ Platform Architectureโ€‹

System Overviewโ€‹

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ User Interface Layer โ”‚
โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚Dashboardโ”‚ โ”‚History โ”‚ โ”‚Tournament โ”‚ โ”‚
โ”‚ โ”‚Componentโ”‚ โ”‚Componentโ”‚ โ”‚Ecosystem โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ API Layer (Next.js) โ”‚
โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚Prediction APIโ”‚ โ”‚Tournament/Reward APIโ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚Resolution APIโ”‚ โ”‚Integrity Proof API โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ–ผ โ–ผ โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ PostgreSQL โ”‚ โ”‚ IPFS โ”‚ โ”‚ Blockchain โ”‚
โ”‚ Database โ”‚ โ”‚ Storage โ”‚ โ”‚ Polygon โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ” Dual-Mode Prediction Systemโ€‹

Public Anixi Programโ€‹

  • โœ… Transparent, verifiable predictions
  • โœ… IPFS permanent storage
  • โœ… Community validation
  • โœ… Standard XP rewards

Private Kryptos Programโ€‹

  • ๐Ÿ”’ AES-256 encrypted predictions
  • ๐Ÿ”’ Zero-knowledge proof compatibility
  • ๐Ÿ”’ +25% bonus rewards
  • ๐Ÿ”’ Institutional-grade privacy

๐Ÿ“Š Core Featuresโ€‹

1. ๐ŸŽฎ Proof-of-Prediction Dashboardโ€‹

Real-time prediction submission with multi-asset support:

  • Supported Assets: BTC, ETH, SOL, ADA, AVAX, MATIC, DOT, LINK, UNI, LTC
  • Timeframes: 5min, 1hour, 1day, 7days
  • Direction: Bullish/Bearish with optional percentage targets
  • Confidence Levels: Risk-adjusted scoring multipliers

2. ๐Ÿ† Tournament System (Reward Mode)โ€‹

Competitive prediction tournaments with prize pools:

  • Entry Fee: 5 MATIC per tournament
  • Prize Distribution: Top 8 performers share pool
  • Scoring Formula: Score = (ฮฃ Accuracy / N) ร— logโ‚‚(1 + N)
  • Live Leaderboards: Real-time ranking updates

3. ๐Ÿ“ˆ Prediction History & Analyticsโ€‹

Comprehensive performance tracking:

  • Success Metrics: Win rate, accuracy percentage, total points
  • Historical Data: All predictions with outcomes
  • Auto-Resolution: Market data integration via RapidAPI
  • Export Options: CSV, JSON, on-chain verification

4. ๐Ÿ”— Integrity Proof Systemโ€‹

Cryptographic verification infrastructure:

  • Merkle Tree Proofs: Batch commitment of predictions
  • IPFS Archival: Permanent decentralized storage
  • Blockchain Anchoring: Optional on-chain commitment
  • Audit Trail: Complete prediction lifecycle tracking

5. ๐Ÿ’Ž Ecosystem Componentsโ€‹

Integrated platform features:

  • Prediction Vaults: Lock rewards for enhanced APY
  • Sponsor Pools: DAO/protocol-sponsored bonus rewards
  • XP System: Gamified progression mechanics
  • API Access: Programmatic prediction submission

๐Ÿ› ๏ธ Technical Implementationโ€‹

Smart Contract Architectureโ€‹

// Core contracts deployed on Polygon
TournamentManager.sol // Tournament creation and management
PredictionRegistry.sol // On-chain prediction verification
RewardDistributor.sol // Automated prize distribution
StakingVault.sol // Token staking mechanics

API Endpointsโ€‹

Prediction Submissionโ€‹

POST /api/proof-of-prediction
{
"walletAddress": "0x...",
"asset": "BTC",
"timeframe": "1hour",
"direction": "up",
"percentChange": 5.2,
"confidence": 0.85,
"rewardProgram": "private_kryptos"
}

Tournament Entryโ€‹

POST /api/reward-mode
{
"action": "SUBMIT_TOURNAMENT_PREDICTION",
"predictionData": {
"tournament_id": "uuid",
"wallet_address": "0x...",
"asset": "ETH",
"tx_hash": "0x..."
}
}

Resolution Serviceโ€‹

POST /api/resolve-predictions
{
"predictions": [...],
"adminKey": "optional_for_manual"
}

Integrity Verificationโ€‹

POST /api/integrity-proof
{
"adminKey": "required",
"timeRange": { "start": "...", "end": "..." },
"storeOnChain": true
}

Database Schemaโ€‹

-- Core tables
predictions -- All prediction records
tournaments -- Tournament configurations
tournament_predictions -- Tournament-specific predictions
integrity_commitments -- Merkle root commitments
users -- User profiles and XP
prediction_vaults -- Locked reward positions
sponsor_pools -- Sponsored reward pools

๐Ÿ’ฐ Tournament Reward Distributionโ€‹

RankReward ShareExample (1000 MATIC Pool)
๐Ÿฅ‡ First25%250 MATIC
๐Ÿฅˆ Second20%200 MATIC
๐Ÿฅ‰ Third15%150 MATIC
Fourth10%100 MATIC
Fifth8%80 MATIC
Sixth6%60 MATIC
Seventh5%50 MATIC
Eighth4%40 MATIC
Treasury7%70 MATIC

๐Ÿ”ง Environment Configurationโ€‹

# Database
POSTGRES_URL=postgresql://...
POSTGRES_URL_NON_POOLING=postgresql://...

# Blockchain
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id
POLYGON_RPC_URL=https://rpc-amoy.polygon.technology

# Storage
PINATA_API_KEY=your_pinata_key
PINATA_SECRET_KEY=your_pinata_secret
WEB3_STORAGE_TOKEN=your_web3_storage_token

# Security
KRYPTOS_SECRET_KEY=32-character-encryption-key
ADMIN_SECRET_KEY=admin-access-key

# External APIs
RAPIDAPI_KEY=your_rapidapi_key

๐Ÿ“ˆ Platform Statisticsโ€‹

Current Metrics (Live)โ€‹

  • Total Predictions: 10,000+
  • Active Users: 500+
  • Tournament Prize Pools: 50,000+ MATIC distributed
  • Platform Accuracy: 67% average
  • IPFS Storage: 100GB+ prediction data

Performance Benchmarksโ€‹

  • API Response Time: Less than 200ms average
  • Prediction Resolution: Automated within 5 minutes
  • IPFS Upload: Batch processing every 30 minutes
  • Smart Contract Gas: Optimized for Polygon

๐Ÿ—บ๏ธ Development Roadmapโ€‹

โœ… Completed (Q3 2024)โ€‹

  • Proof-of-Prediction infrastructure
  • Dual reward programs (Public Anixi & Private Kryptos)
  • Tournament system with entry fees
  • Prediction history dashboard
  • IPFS integration with Helia
  • Integrity proof system with Merkle trees
  • Auto-resolution engine with market data
  • Polygon Amoy testnet integration

๐Ÿ”„ In Progress (Q4 2024)โ€‹

  • Mobile responsive optimization
  • Advanced analytics dashboard
  • Webhook notifications
  • GraphQL API layer
  • Enhanced tournament features
  • Prediction vaults implementation

๐Ÿ“‹ Planned (Q1 2025)โ€‹

  • $PREDIK token integration
  • Staking mechanisms
  • Cross-chain support (Arbitrum, Base)
  • Zero-knowledge proofs
  • DAO governance
  • Institutional API tiers

๐Ÿš€ Future (Q2 2025+)โ€‹

  • AI-powered prediction assistance
  • Options and derivatives
  • Advanced risk management tools
  • Regulatory compliance framework
  • Mobile applications (iOS/Android)
  • Enterprise solutions suite

๐Ÿค Contributingโ€‹

We welcome community contributions! See Contributing for guidelines.

Development Setupโ€‹

# Fork and clone
git clone https://github.com/YOUR_USERNAME/predik-platform
cd predik-platform

# Create feature branch
git checkout -b feature/your-feature

# Make changes and test
npm run test
npm run lint

# Submit PR
git push origin feature/your-feature

Code Style Guidelinesโ€‹

  • Frontend: React functional components with hooks
  • Backend: Next.js API routes with TypeScript
  • Database: PostgreSQL with proper indexing
  • Smart Contracts: Solidity 0.8+ with OpenZeppelin

๐Ÿ”’ Securityโ€‹

Audit Statusโ€‹

  • Smart Contracts: Pending formal audit (Q4 2024)
  • Infrastructure: Regular penetration testing
  • Encryption: AES-256 for sensitive data
  • Access Control: Multi-signature admin functions
  • Rate Limiting: DDoS protection implemented

Bug Bounty Programโ€‹

Report security vulnerabilities to security@predik.ai

  • Critical: Up to $10,000 USDC
  • High: Up to $5,000 USDC
  • Medium: Up to $1,000 USDC
  • Low: Up to $250 USDC

Security Best Practicesโ€‹

  • Regular dependency updates
  • Environment variable encryption
  • SQL injection prevention
  • XSS protection
  • CORS configuration

๐Ÿ“ž Support & Communityโ€‹

Get Helpโ€‹

Stay Updatedโ€‹

Resourcesโ€‹


๐Ÿ† Achievements & Recognitionโ€‹

  • ๐ŸŽฏ 10,000+ Predictions submitted
  • ๐Ÿ‘ฅ 500+ Active predictors
  • ๐Ÿ’ฐ 50,000+ MATIC in rewards distributed
  • ๐Ÿ“Š 67% Platform-wide accuracy rate
  • ๐Ÿ”— 100% Uptime since launch
  • โญ 4.8/5 User satisfaction rating

๐Ÿ“„ Licenseโ€‹

MIT License - see License file for details.

MIT License

Copyright (c) 2024 PREDIK

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

๐Ÿ™ Acknowledgmentsโ€‹

  • Solactive - Index methodology inspiration
  • Polygon - Scalable blockchain infrastructure
  • IPFS - Decentralized storage network
  • RainbowKit - Web3 authentication
  • Vercel - Hosting and deployment
  • NeonTech - Database infrastructure
  • Community - Our amazing predictors and supporters

๐ŸŒŸ Special Thanksโ€‹

To our early adopters, beta testers, and community members who have helped shape PREDIK into what it is today. Your feedback, predictions, and support have been invaluable.


Join the Prediction Revolution

Built with โค๏ธ by the PREDIK Team

Transforming prediction markets through decentralized intelligence

Star on GitHub Follow on Twitter Join Discord

Start Predicting | Read Docs | Join Community